import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
  ],
  css: {
    preprocessorOptions: {
      scss: {
        quietDeps: true, // 忽略 Sass 弃用警告
      },
    },
  },
  build: {
    sourcemap: false, // 禁用源映射生成
  },
  server: {
    hmr: {
      overlay: false, // 禁用错误覆盖
    },
  },
});
